from django.shortcuts import render,redirect
from django.views import View
from django.http import HttpResponse

# Create your views here.
from mybook.models import Book,Publish
def show(reuqest):
    data=Book.objects.all()

    return render(reuqest,'mybook/show.html',locals())





class MyBookAdd(View):
    def get(self,request):

        Publish.objects.all()
        return render(request,'mybook/add.html',locals())
    def post(self,request):
        pass


class MyBookUpdate(View):
    def get(self, request):
        pass

    def post(self, request):
        pass

def delete(request):
    pass